import {createApp} from 'vue';
import App from './App.vue';
import router from "@/router/index.js";
import store from "@/store/index.js";
import * as antIcons from '@ant-design/icons-vue';

// Antd
import Antd from "ant-design-vue/es";

// 引入css
import "ant-design-vue/dist/reset.css";
import "./assets/css/index.less";

// 引入js
// import "./utils/index.js";

const app = createApp(App);

app.use(Antd);
app.use(router);
app.use(store);

Object.keys(antIcons).forEach(key => {
    app.component(key, antIcons[key]);
});

app.config.globalProperties.$antIcons = antIcons;

app.mount('#app');
